﻿using System.Windows;
using System.Windows.Controls;
using Deepseek_Robot.Modules.ViewModels;

namespace Deepseek_Robot.Modules.Views
{
    public partial class RobotParameterPage : Page
    {
        public RobotParameterPage()
        {
            InitializeComponent();
        }

        private void ImportButton_Click(object sender, RoutedEventArgs e)
        {
            var viewModel = (RobotParameterViewModel)DataContext;
            viewModel.ImportFromExcel();
        }

        private void ExportButton_Click(object sender, RoutedEventArgs e)
        {
            var viewModel = (RobotParameterViewModel)DataContext;
            viewModel.ExportToExcel();
        }
    }
}